package com.sdtv.mediunfusion.mvp.ui.home.fragment;

import android.widget.ImageView;

import com.sdtv.basemodule.base.BaseFragment;
import com.sdtv.basemodule.router.ARouterUtils;
import com.sdtv.mediunfusion.R;
import com.sdtv.mediunfusion.utils.RouterPath;

import butterknife.BindView;

/**
 * @ProjectName: MediunFusion
 * @Package: com.sdtv.mediunfusion.mvp.home.fragment
 * @ClassName: IndexFragment
 * @Description: java类作用描述
 * @Author: 小郭同学
 * @CreateDate: 2019-07-25 15:00
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class IndexFragment extends BaseFragment {


    public static IndexFragment instance;
    @BindView(R.id.content1)
    ImageView content1;

    public static IndexFragment getInstance() {
        if (null == instance) {
            synchronized (IndexFragment.class) {
                if (null == instance) {
                    instance = new IndexFragment();
                }
            }
        }
        return instance;
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_index_layout;
    }

    /**
     * 初始化页面数据
     */
    @Override
    public void initData() {

    }

    /**
     * 初始化页面view
     */
    @Override
    public void initView() {
        content1.setOnClickListener(view -> ARouterUtils.navigation(RouterPath.TO_TASK_LIST_Activity));

    }

}
